﻿<html>
<head>
	<title>FluentFetchXML Library Tester</title>
	<script type="text/javascript" src="./FluentFetch.js"></script>
</head>
<body style="height: 563px">
	<h1>
		FluentFetchXML Library Tester</h1>
	<button type="button" onclick="Output.value = eval(Input.value);">
		Generate Fetch XML
	</button>
	<table border="0" cellpadding="0px" cellspacing="3px" width="100%" style="height: 413px">
		<tr>
			<td width="50%">
				<textarea name="Input" style="width: 100%; height: 450px">
var test = new fluentFetchXml(); 
test    .count('5')
	.entityName('sdas')
	.attribute('abc')
	.attribute('pqr')
	.order('sdsd',true)
	.condition('name','eq','asa')
		.filter('or')
			.condition('name','eq','asa1')
			.condition('name','eq','asa1')
	.getFetchXml();
				</textarea>
			</td>
			<td width="50%">
				<textarea name="Output" style="width: 100%; height: 450px"> 
				</textarea>
			</td>
		</tr>
	</table>
</body>
</html>
